package com.demo.studentmanager.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.demo.studentmanager.dto.SelectCourseListDto;
import com.demo.studentmanager.entity.Course;
import com.demo.studentmanager.vo.SelectCourseVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author ZHB
 * @version 1.0.0
 * @date Create in 2020/11/19
 */

@Repository
public interface SelectCourseMapper extends BaseMapper<Course> {

    /**
     * 选课表增删改查数据访问
     *
     * @param page
     * @param selectCourseListDto
     * @return
     */
    IPage<SelectCourseVO> getSelectCourseList(IPage<SelectCourseVO> page, @Param("seleCourseSearch") SelectCourseListDto selectCourseListDto);

    //合并代码修改实体类
    Boolean addStudentCourse(@Param("cno") String cno, @Param("sno") String sno);

    //  Student getStudent(@Param("sno")String sno);
}
